<?php

namespace app\api\controller\v1;

use app\Request;
use app\services\product\BrandService;

class BrandController
{
    public function info($id)
    {
        $indexService = app()->make(BrandService::class);
        $info = $indexService->getForntInfo($id);
        return app('json')->success($info);
    }

    public function list(Request $request)
    {
        $indexService = app()->make(BrandService::class);
        $params = $request->param();
        $params['status'] = 1;
        $list = $indexService->getList($params);
        return app('json')->success($list);
    }
}